home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 July
/
07_02.iso
/
software
/
xq-xsetup
/
files
/
setup.exe
/
{app}
/
plugins
/
XQ WinXP Start Menu 5.xpl
< prev
next >
Wrap
Text File
|
2002-01-03
|
4KB
|
151 lines
"FILE"="Xteq Systems X-Setup Plugin 6.0"
"TYPE"="9"
"COUNT"="1"
"UIPATH 1"="Appearance\Start menu\Windows XP\New Start Menu"
"NAME"="Cascaded System Items"
"VERSION"="2.00"
"OSVERSION="000001"
"LANGUAGE"="VBScript"
"DESCRIPTION 1"="Use this plug-in to show some of the "special" folder of Window in cascading menu so you can easily access them. "
"DESCRIPTION 2"="Cascade means: make the items behave like menus with submenus instead of just opening the related folder. "
"DESCRIPTION 3"="Please note: "Administration" and "Favorites" are auto-cascading; means when they are visible, they will automatically cascaded."
"AUTHOR"="Xteq Systems"
"CONTACTURL"="http://www.xteq.com"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"=" "
sP2="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\"
sV1=sP2 & "Start_ShowPrinters"
sV2=sP2 & "Start_ShowControlPanel"
sV3=sP2 & "Start_ShowMyDocs"
sV4=sP2 & "Start_ShowMyPics"
sV5=sP2 & "Start_ShowMyMusic"
sV6=sP2 & "Start_ShowMyComputer"
sV7=sP2 & "Start_ShowRecentDocs"
sV8=sP2 & "Start_ShowNetConn"
SUB Plugin_Initialize
Call SetUIElement(1,"Show cascading 'Printers' in Start Menu")
Call ReadIt_3(1,sV1)
Call SetUIElement(2,"Show cascading 'Control Panel' in Start Menu")
Call ReadIt_3(2,sV2)
Call SetUIElement(3,"Show cascading 'My Documents' in Start Menu")
Call ReadIt_3(3,sV3)
Call SetUIElement(4,"Show cascading 'My Pictures' in Start Menu")
Call ReadIt_3(4,sV4)
Call SetUIElement(5,"Show cascading 'My Music' in Start Menu")
Call ReadIt_3(5,sV5)
Call SetUIElement(6,"Show cascading 'My Computer' in Start Menu")
Call ReadIt_3(6,sV6)
Call SetUIElement(7,"Show cascading 'Recent Documents' in Start Menu")
Call ReadIt_3(7,sV7)
Call SetUIElement(8,"Show cascading 'Network Connections' in Start Menu")
Call ReadIt_3(8,sV8)
END SUB
'Called when the Plugin should apply the changes
SUB Plugin_Apply(ElementIndex,ElementSubIndex)
Call WriteIt_3(1,sV1)
Call WriteIt_3(2,sV2)
Call WriteIt_3(3,sV3)
Call WriteIt_3(4,sV4)
Call WriteIt_3(5,sV5)
Call WriteIt_3(6,sV6)
Call WriteIt_3(7,sV7)
Call WriteIt_3(8,sV8)
Call IndicateSettingChange()
Call Logoff()
END SUB
Sub ReadIt(ITM,PATH1)
if RegValueExists(PATH1)=false then 'setting available?
'no setting -> item visible
Call SetUIElementEx(ITM,true)
else
i=RegReadValue(PATH1)
if i=0 then
Call SetUIElementEx(ITM,true)
end if
end if
End Sub
Sub ReadIt_2(ITM,PATH1)
if RegValueExists(PATH1)=false then 'setting available?
'no setting -> item not visible
Call SetUIElementEx(ITM,false)
else
i=RegReadValue(PATH1)
if i>0 then
Call SetUIElementEx(ITM,true)
end if
end if
End Sub
Sub ReadIt_3(ITM,PATH1)
if RegValueExists(PATH1)=false then 'setting available?
'no setting -> item not visible
Call SetUIElementEx(ITM,false)
else
i=RegReadValue(PATH1)
if i>1 then
Call SetUIElementEx(ITM,true)
end if
end if
End Sub
Sub WriteIt(ITM,PATH1)
b=GetUIElementEx(ITM)
if b=true then
s=RegReadValue(PATH1)
if IsEmpty(s)=false then
Call RegDeleteValue(PATH1)
end if
else
Call RegWriteValue(PATH1,1,2)
end if
End Sub
Sub WriteIt_2(ITM,PATH1)
b=GetUIElementEx(ITM)
if b=true then
i=RegReadValue(PATH1)
if i<1 then
Call RegWriteValue(PATH1,1,2)
end if
else
Call RegWriteValue(PATH1,0,2)
end if
End Sub
Sub WriteIt_3(ITM,PATH1)
b=GetUIElementEx(ITM)
if b=true then
Call RegWriteValue(PATH1,2,2)
else
i=RegReadValue(PATH1)
if i=2 then
Call RegWriteValue(PATH1,1,2)
end if
end if
End Sub
SUB Plugin_Terminate
END SUB